// DecryptTransform.js
import { Transform } from 'stream'

class DecryptTransform extends Transform {
  _transform(chunk, _, callback): void {
    const decrypted = Buffer.from(chunk.map((byte) => byte - 2))
    this.push(decrypted)
    callback()
  }
}

export default DecryptTransform
